﻿@model string[]
@{
    ViewBag.Title = "SaveImage";
}

<div class="grid_12">
    <div class="module">
        <tr style="border-bottom-color:black;" >
                    <td ></td>
                    <td>名称:<input type="text" id="txtall" class="input-xlarge" />
                        <div style="margin-top:5px;" ></div>
                        简介:<textarea rows="5" cols="90" id="txteall" style="width:60%" ></textarea>
                    </td>
                </tr>
        <form action="/@Html.ViewContext.RouteData.Values["uid"]/photo/DoSaveImg"  method="post">
        <div class="module-body">
            <ul class="unstyled lifloat" >
            @if(Model!=null){
                for (int i = 0; i < Model.Count(); i++)
                {
                    if (!string.IsNullOrEmpty(Model[i])){
                        <li >
                            <div style="width: 120px;float: left;" ><img width="120" src="@(StaticCs.VirtualPath+LoginModel.User.Uid)/@Model[i]" /></div>
                            <div>名称:<input type="text" name="Photo[@i].Title" class="input-xlarge bodyinput" />
                                <div style="margin-top:5px;" ></div>
                                简介:<textarea rows="5" cols="90" class="bodytxtinput" style="width:60%" name="Photo[@i].Content"></textarea><input type="hidden" name="Photo[@i].PicAddress" value="@Model[i]" />
                            </div>
                        </li>
                    }
                }
            }
             </ul>
            <fieldset class="clear form-actions" style="text-align: center;" >
                <input name="typeid" type="hidden" value="@ViewBag.typeid" />
                <input class="btn btn-primary" style="width:120px; line-height:30px;font-size:20px;" type="submit" value="提交">
            </fieldset>
        </div>
        </form>

        <!-- End .module-body -->

    </div>
</div>
<script >
    $(function () {
        $("#txtall").keyup(function () {
            $(".bodyinput").val($(this).val());
        });
        $("#txteall").keyup(function () {
            $(".bodytxtinput").val($(this).val());
        });
    });
    setucentmenu("photo");
</script>
